#!/usr/bin/gnuplot

#set terminal post eps 24
set terminal post eps color 24

# map output per map task 
set output "mapout.eps"
set xlabel "Map Task ID"
set ylabel "Map Output Bytes (MB)"

plot "maptasks.dat" using 1:($6)/(1024*1024) with impulses notitle 

# map input per map task 
set output "hdfsread.eps"
set xlabel "Map Task ID"
set ylabel "HDFS Read Bytes (MB)"

plot "maptasks.dat" using 1:($4)/(1024*1024) with impulses notitle


# file read per reduce task 
set output "reducefread.eps"
set xlabel "Reduce Task ID"
set ylabel "File Read Bytes (MB)"

plot "reducetasks.dat" using 1:($2)/(1024*1024) with impulses notitle

